<template>
	<view class="container">
		<swiper class="swiper" 
				@change="change_swiper" 
				autoplay="true" 
				:style="{width:width,height:height}" 
				:indicator-dots="false">
			<swiper-item v-for="(value,key) in banner" :id="value.goods_id" :key="key">
				<image :style="{width:width,height:height}" :id="value.goods_id" :src="url+value.goods_img" ></image>
			</swiper-item>
		</swiper>
		<view class="y" :style="{top:y}">{{n}}/{{t}}</view>
		<view class="title">
			<view class='title_price'>￥{{use_price}}
			<text class="start" v-if="start_status==1">起</text>
			<text>￥{{original}}</text>
			<text class="integral" v-if="goods.promotion_499==1">({{integral}}积分)</text>
			</view>
			<view class="goods_commsion" v-if="commission!=0">
				<view class="commission_name">佣金</view>
				<view class="commission_price">￥{{commission}}</view>
			</view>
		</view>
		<view class="title_goods_name">{{goods.goods_name}}</view>
		<view class="title_remark">{{goods.title}}</view>	
		<view class="choice">
		  <view class='choice_left'>选择数量</view>
		  <view class='number' v-if="goods.free_goods==0">
			<view class='jian' v-if="goods.attribute!=3"  v-on:click='jian'>
				<image src='../../static/images/jian.png'></image>
			</view>
			<view class='number_number'>{{number}}</view>
			<view class='jian' v-if="goods.attribute!=3" v-on:click='jia'>
				<image src='../../static/images/jia.png'></image>
			</view>
		  </view>
		  <view class='number' v-else><view class='number_number'>{{number}}</view></view>
		</view>
		<view class="choice">
		  <view class='choice_left'>规格</view>
		  <view class='choice_specs' v-on:click="select_specs">{{specs}}</view>
		</view>
		<view class="choice">
			<view class='choice_left'>邮费</view>
			<view class='choice_value' v-if="goods.fare==0">免费</view>
			<view class='choice_value' v-else>￥{{goods.fare}}</view>
			<view class='choice_y'>已售：{{goods.sum}}件</view>
		</view>
<!--		<view class="member_list"  v-if="goods.promotion_499==1">-->
<!--			<view class="list_unit" v-for="(item,index) in member" :key="index">-->
<!--				<image :src="item.img"></image>-->
<!--				<view class="unit_member">{{item.nickname.substr(0,2)}}...{{item.nickname.substr(item.nickname.length-2,2)}}</view>-->
<!--				<view class="order_number">拼一单</view>-->
<!--				<view class="order_pin" v-on:click="buy_submit">与他拼单</view>-->
<!--			</view>-->
<!--		</view>-->
		<view class="menu_title">
			<view class="content_name">商品详情</view>
			<view class="line"></view>
		</view>
		<view class='shop_info_view'>
			<rich-text :nodes="goods.describe"></rich-text>
		</view>
		<view class='foot'>
			<block>
        <block v-if="goods.attribute==3 && member_result.is_haggle==0">
          <view class='foot_middle' v-on:click='haggle' v-if="goods_status==1">砍价</view>
        </block>
        <block v-else>
          <view class='foot_middle' v-on:click='add_cart_submit' v-if="goods_status==1">加入购物车</view>
        </block>
				<view class='foot_right'  v-on:click='buy_submit' v-if="goods_status==1">立即购买</view>
<!--				<view class='foot_right'  v-on:click='buy_submit' v-if="goods_status==1 && goods.goods_id!=439">立即购买</view>-->
<!--				<view class='foot_right'  v-on:click='add_agent_area' v-if="goods.goods_id==439">立即购买</view>-->
				<view class="foot_button"  v-if="goods_status==0">已售罄</view>
			</block>
<!--		<view class='foot' v-if="goods.promotion_499==0">	-->
<!--			&lt;!&ndash;#ifdef MP-WEIXIN &ndash;&gt;-->
<!--			<button  open-type="contact" class='foot_service' v-if="goods.free_goods==0">-->
<!--				<image class="foot_pic" :src="static_url+'/service_.png'"></image>-->
<!--				<view class="foot_name">客服</view>-->
<!--			</button>-->
<!--			<button  open-type="share" class='foot_service' v-if="goods.free_goods==0">-->
<!--				<image class="foot_pic" :src="static_url+'/share.png'"></image>-->
<!--				<view class="foot_name">分享</view>-->
<!--			</button>-->
<!--			&lt;!&ndash;#endif&ndash;&gt;-->
<!--			&lt;!&ndash;#ifdef APP-PLUS &ndash;&gt;-->
<!--			<view class='foot_left' v-on:click='home'  v-if="goods.free_goods==0">-->
<!--				<image class="foot_pic" :src="static_url+'/site.png'"></image>-->
<!--				<view class="foot_name">首页</view>-->
<!--			</view>-->
<!--			&lt;!&ndash;#endif&ndash;&gt;-->
<!--			&lt;!&ndash;#ifdef H5 &ndash;&gt;-->
<!--			<view class='foot_left' v-on:click='home'  v-if="goods.free_goods==0">-->
<!--				<image class="foot_pic" :src="static_url+'/site.png'"></image>-->
<!--				<view class="foot_name">首页</view>-->
<!--			</view>-->
<!--			&lt;!&ndash;#endif&ndash;&gt;-->
<!--			<view class='foot_left' v-on:click='cart'  v-if="goods.free_goods==0">-->
<!--				<image class="foot_pic" :src="static_url+'/cart.png'"></image>-->
<!--				<view class="foot_name">购物车</view>-->
<!--			</view>-->
<!--			<block v-if="goods.free_goods==0">-->
<!--				<view class='foot_middle' v-on:click='add_cart_submit' v-if="goods_status==1">加入购物车</view>-->
<!--				<view class='foot_right'  v-on:click='buy_submit' v-if="goods_status==1">立即购买</view>-->
<!--&lt;!&ndash;				<view class='foot_right'  v-on:click='buy_submit' v-if="goods_status==1 && goods.goods_id!=439">立即购买</view>&ndash;&gt;-->
<!--&lt;!&ndash;				<view class='foot_right'  v-on:click='add_agent_area' v-if="goods.goods_id==439">立即购买</view>&ndash;&gt;-->
<!--				<view class="foot_button"  v-if="goods_status==0">已售罄</view>-->
<!--			</block>-->
<!--			<view class="foot_free_button" v-on:click='buy_submit' v-else>免费领取</view>-->
<!--		</view>-->
<!--		<view class='foot' v-if="goods.promotion_499==1">-->
<!--			<view class='foot_middle_' v-on:click='add_cart_submit'>蓝积分兑换</view>-->
<!--			<view class='foot_right_'  v-on:click='buy_submit'>参与抽奖</view>-->
<!--		</view>-->
		</view>
		<view class="mask" :style="{width:width,height:h}" v-show="display==1" v-on:click="dialog_close"></view>
		<view class="dialog" :style="{width:width}" v-show="display==1">
			<view class="dialog_goods">
				<view class="dialog_pic">
					<image mode="widthFix" :src="logo"></image>
				</view>
				<view class="goods_con">
					<view class="dialog_price">￥{{use_price}}
<!--						<text class="integral" v-if="goods.promotion_499==1">({{integral}}积分)</text>-->
					</view>
					<view class="dialog_y">已售：{{goods.sum}}件</view>
				</view>
			</view>
<!--      <view class='self_lifting'>-->
<!--        <view class='self_lifting_title'>自提</view>-->
<!--        <switch :checked="open==1?true:false" @change="open_change"/><text class="self_lifting_text">绿色代表自提，灰色代表邮寄</text>-->
<!--      </view>-->
			<view class="specs"  v-if="price.length>0">
				<view class="specs_title">规格</view>
				<view class="specs_unit" :class="item.checked==1?'current_tag':'tag'" v-for="(item,index) in price" :id="item.price_id" :key="index" v-on:click="select_tag">
					<image mode="widthFix" :src="url+item.imgurl"></image>
					<view class="specs_name">{{item.specs_name}}</view>
				</view>
			</view>
			<view class="specs" v-else>
				<view class="specs_title">规格</view>
				<view class="specs_unit">无</view>
			</view>
			<view class="dialog_number">
				<view class="label_name">购买数量</view>
				<view class="number_con" v-if="goods.free_goods==0">
					<view class='jian' v-if="goods.attribute!=3" v-on:click='jian'>
						<image src='../../static/images/jian.png'></image>
					</view>
					<view class='number_number'>{{number}}</view>
					<view class='jian' v-if="goods.attribute!=3" v-on:click='jia'>
						<image src='../../static/images/jia.png'></image>
					</view>
				</view>
				<view class="number_con" v-else><view class='number_number'>{{number}}</view></view>
			</view>
			<view class="dialog_foot">
				<!-- <view class='foot_middle' v-on:click='add_cart'>加入购物车</view>
				<view class='foot_right'  v-on:click='buy'>立即购买</view> -->
				<block>
          <block v-if="goods.attribute==3 && member_result.is_haggle==0">
            <view class='foot_middle' v-on:click='haggle' v-if="goods_status==1">砍价</view>
          </block>
          <block v-else>
            <view class='foot_middle' v-on:click='add_cart_submit' v-if="goods_status==1">加入购物车</view>
          </block>
					<view class='foot_right' data-type="buy"  v-on:click='buy' v-if="goods_status==1">立即购买</view>
					<view class="foot_button"  v-if="goods_status==0">已售罄</view>
				</block>
<!--				<view class="foot_free_button" data-type="free" v-on:click='buy' v-else>免费领取</view>-->
			</view>
<!--			<view class="dialog_foot"  v-if="goods.promotion_499==1">-->
<!--				<view class='foot_middle_' data-type="exchange" v-on:click='buy'>蓝积分兑换</view>-->
<!--				<view class='foot_right_' data-type="group"  v-on:click='buy'>参与抽奖</view>-->
<!--			</view>-->
		</view>
<!--		<view class="mask" :style="{width:width,height:h}" v-show="display==2" v-on:click="dialog_close"></view>-->
<!--		<view class="dialog" :style="{width:width}" v-show="display==2">-->
<!--      <view class='self_lifting'>-->
<!--        <view class='self_lifting_title'>自提</view>-->
<!--        <switch :checked="open==1?true:false" @change="open_change"/>-->
<!--        <text class="self_lifting_text" v-show="open==1">目前订单自提</text>-->
<!--        <text class="self_lifting_text" v-show="open==0">目前订单邮寄</text>-->
<!--      </view>-->
<!--			<view class="dialog_foot">-->
<!--				<view class='foot_right_and_left' data-type="group"  v-on:click='buy_submit_2' v-show="open==1">自提</view>-->
<!--				<view class='foot_right_and_left' data-type="group"  v-on:click='buy_submit_2' v-show="open==0">邮寄</view>-->
<!--			</view>-->
<!--		</view>-->

<!--    <view class="mask" :style="{width:width,height:h}" v-show="display==3" v-on:click="dialog_close"></view>-->
<!--		<view class="dialog" :style="{width:width}" v-show="display==3">-->
<!--      <view class="agent_">-->
<!--        <view class='input_label'>代理区域</view>-->
<!--        <input class='input_text' placeholder='代理区域' data-name="title1" @input="input_" :value="title1"></input>-->
<!--        <view></view>-->
<!--        <view class="agent_area_tips_info">例区代：<text class="agent_area_tips_info_detail">辽宁省-沈阳市-沈河区</text> 严格按着这个格式添加</view>-->
<!--        <view class="agent_area_tips_info">例市代：<text class="agent_area_tips_info_detail">辽宁省-沈阳市</text> 严格按着这个格式添加</view>-->
<!--        <view class="agent_area_tips_info">例省代：<text class="agent_area_tips_info_detail">辽宁省</text> 严格按着这个格式添加</view>-->
<!--&lt;!&ndash;        <view class='verify_area foot_right_and_left' data-type="group" v-on:click="verify_area">检查</view>&ndash;&gt;-->
<!--      </view>-->
<!--			<view class="dialog_foot">-->
<!--&lt;!&ndash;				<view class='foot_middle_' data-type="exchange" v-on:click='add_cart_submit'>蓝积分兑换</view>&ndash;&gt;-->
<!--				<view class='foot_right_and_left' data-type="group" v-show="title1!='' && area_status==1"  v-on:click='buy_submit_2'>立即购买</view>-->
<!--				<view class='foot_right_and_left' data-type="group" v-show="title1==''">请填写代理区域</view>-->
<!--				<view class='foot_right_and_left' data-type="group" v-show="title1!='' && area_status!=1" v-on:click="verify_area">检查</view>-->
<!--			</view>-->
<!--		</view>-->
	</view>
</template>
<script>
	//#ifdef H5
	import wxjs   from '../../jweixin/lib/index.js';
	//#endif
	import toMpWeixin from '../../js_sdk/wzc-toMpWeixin/toMpWeixin.js';
	export default {
		data() {
			return {
				width:'',
				height:'',
				h:'',
				pic_h:'',
				goods:{},
        member_result:{},
				price:[],
				banner:[],
				logo:'',
				goods_w:'',
				id:0,
				use_price:0,
				price_id:0,
				number:1,
				commission:0,
				display:0,
				start_status:1,
				goods_status:1,
				specs:'选择规格',
				site:'',
				open_status:0,
        area_status:0,
				original:'',
				integral:0,
        open:1,
        area_value:'',
        title1:'',
				n:1,
				t:5,
				y:'',
				msg:'',
				member:[],
				type:'exchange',//exchange 积分兑换；buy  直接购买
				url: getApp().globalData.url,
				static_url:getApp().globalData.static,
        haggle_status:false,
        e_:[]
			}
		},
		onLoad(e) 
		{
			var res = uni.getSystemInfoSync();
			var w = res.windowWidth;
			this.goods_w  = 4*150+"px";
			this.h = res.windowHeight+"px";
			this.height = w*4/4+"px";
			this.width  = w+"px";
			this.y = w-20+"px";
			this.pic_h  = w*0.96*0.25+"px";
			this.id     = e.id;
			// this.id     = 434;
			const scene = decodeURIComponent(e.scene);
			var upid    = uni.getStorageSync("upid");
			this.e_ = e;
			if(scene=="undefined"||scene==undefined)
			{
				if(upid=="" || upid==undefined || upid=="undefined")
				{
					if(e.upid==undefined)
					{
						uni.setStorageSync("upid",0);
					}
					else
					{
						uni.setStorageSync("upid",parseInt(e.upid));
					}
				}
			}
			else
			{
				uni.setStorageSync("upid",scene);
			}

			if(e.type=="order")
			{
				this.order_submit();
			}
			// this.initialize();
		},
		onShow(){
      this.initialize();

      let that = this;
		  let e = this.e_;
      var member_id = uni.getStorageSync("member_id");
      var phone = uni.getStorageSync("phone");

      //砍价逻辑
      if (e.haggle_status!='undefined' && e.haggle_status!=undefined) {
        if (member_id != e.haggle_status) {
          uni.setStorageSync("haggle_status", e.haggle_status);
        }

        if (member_id=="" || member_id==undefined || member_id=="undefined") {
          uni.showModal({
            title:'提示',
            content: '请先登录',
            confirmText: '确定',
            success: function (res) {
              if (res.confirm) {
                uni.switchTab({
                  url:"../member/index"
                })
              }
              return;
            }
          });
        }
        else {
          if (phone == "" || phone == undefined || phone == "undefined" || phone == null || phone.length != 11) {
            uni.showModal({
              title: '提示',
              content: '请先绑定手机号',
              confirmText: '确定',
              success: function (res) {
                if (res.confirm) {
                  uni.switchTab({
                    url: "../member/index"
                  })
                }
                return;
              }
            });
          } else {
            if (member_id != e.haggle_status) {
              uni.showModal({
                title: '提示',
                content: '请帮我砍一刀',
                confirmText: '确定',
                cancelText: '拒绝',
                success: function (res) {
                  if (res.confirm) {
                    var haggle_status_storage = uni.getStorageSync("haggle_status");
                    //请求接口
                    uni.request({
                      url: that.url + '/wechat_help_haggle',
                      data: {id: that.id, member_id: member_id, haggle_id: haggle_status_storage},
                      header: {'Content-Type': 'application/json'},
                      success: (res1) => {
                        uni.showModal({
                          title: '提示',
                          content: res1.data.msg,
                          confirmText: '确定',
                          showCancel:false,
                          success: function (res2) {
                            if (res2.confirm) {
                              uni.removeStorageSync('haggle_status');

                              uni.showModal({
                                title: '提示',
                                content: '我也要砍价拿商品',
                                confirmText: '砍价',
                                cancelText: '取消',
                                success: function (res3) {
                                  if (res3.confirm) {
                                    uni.removeStorageSync('haggle_status');
                                    uni.redirectTo({
                                      url: "/pages/mall/goods_detail?id=" + e.id
                                    })

                                  } else if (res3.cancel) {
                                    uni.switchTab({
                                      url: "../mall/index"
                                    })
                                  }
                                }
                              });
                              // uni.switchTab({
                              //   url:"../mall/index"
                              // })
                            }
                          }
                        });
                      }
                    });
                  } else if (res.cancel) {
                    uni.removeStorageSync('haggle_status');
                    uni.switchTab({
                      url: "../mall/index"
                    })
                  }
                }
              });
            }
          }
        }
      }
      else {
        const haggle_s = uni.getStorageSync('haggle_status');
        console.log(haggle_s);
        if (haggle_s!='' && haggle_s!=undefined && haggle_s!='undefined') {
          if (member_id=="" || member_id==undefined || member_id=="undefined") {
            uni.showModal({
              title:'提示',
              content: '请先登录',
              confirmText: '确定',
              success: function (res) {
                if (res.confirm) {
                  uni.switchTab({
                    url:"../member/index"
                  })
                }
                return;
              }
            });
          }
          else {
            console.log(phone)
            console.log(phone.length)
            if (phone == "" || phone == undefined || phone == "undefined" || phone == null || phone.length != 11) {
              uni.showModal({
                title: '提示',
                content: '请先绑定手机号',
                confirmText: '确定',
                success: function (res) {
                  if (res.confirm) {
                    uni.switchTab({
                      url: "../member/index"
                    })
                  }
                  return;
                }
              });
            }
            else {
              uni.showModal({
                title: '提示',
                content: '请帮我砍一刀',
                confirmText: '确定',
                cancelText: '拒绝',
                success: function (res) {
                  if (res.confirm) {
                    var haggle_status_storage = uni.getStorageSync("haggle_status");
                    //请求接口
                    uni.request({
                      url: that.url + '/wechat_help_haggle',
                      data: {id: that.id, member_id: member_id, haggle_id: haggle_status_storage},
                      header: {'Content-Type': 'application/json'},
                      success: (res1) => {
                        uni.showModal({
                          title: '提示',
                          content: res1.data.msg,
                          confirmText: '确定',
                          showCancel:false,
                          success: function (res2) {
                            if (res2.confirm) {
                              uni.removeStorageSync('haggle_status');

                              uni.showModal({
                                title: '提示',
                                content: '我也要砍价拿商品',
                                confirmText: '砍价',
                                cancelText: '取消',
                                success: function (res3) {
                                  if (res3.confirm) {
                                    uni.removeStorageSync('haggle_status');
                                    uni.redirectTo({
                                      url: "/pages/mall/goods_detail?id=" + e.id
                                    })

                                  } else if (res3.cancel) {
                                    uni.switchTab({
                                      url: "../mall/index"
                                    })
                                  }
                                }
                              });
                              // uni.switchTab({
                              //   url:"../mall/index"
                              // })
                            }
                          }
                        });
                      }
                    });
                  } else if (res.cancel) {
                    uni.removeStorageSync('haggle_status');
                    uni.switchTab({
                      url: "../mall/index"
                    })
                  }
                }
              });
            }
          }
        }
      }
		},
		//#ifdef MP-WEIXIN
		onShareAppMessage(res) {
			var member_id = uni.getStorageSync("member_id");
			if(member_id=="")
			{
				var upid = 0;
			}
			else
			{
				var upid = member_id;
			}
			var title       = '谷牧之道-'+this.goods.goods_name;
			var imgurl      = this.logo;


      let share_title = '谷牧之道-'+this.goods.goods_name;
      let share_desc = '一站式购物平台，厂家产品会员价';
      let share_url = '/pages/mall/goods_detail?upid='+upid+'&id='+this.goods.goods_id;

      if (this.haggle_status && this.goods.attribute == 3) {
        share_title = '谷牧之道-请帮我砍一刀';
        share_desc = '点击链接进入程序授权后绑定手机号即可帮我砍价';
        share_url = '/pages/mall/goods_detail?upid='+upid+'&haggle_status='+member_id+'&id='+this.goods.goods_id;
      }

      // var imgurl  = "https://zhangjie.jdmuguzhid.com/web/static/img/a.png";
			return {
			  title: share_title,
			  path: share_url,
			  imageUrl:imgurl
			}
		},
		onShareTimeline(res)
		{
			var member_id = uni.getStorageSync("member_id");
			if(member_id=="")
			{
				var upid = 0;
			}
			else
			{
				var upid = member_id;
			}
			var title       = '谷牧之道-'+this.goods.goods_name;
			var imgurl      = this.logo;
			// var imgurl  = "https://zhangjie.jdmuguzhid.com/web/static/img/a.png";

      let share_title = '谷牧之道-'+this.goods.goods_name;
      let share_desc = '一站式购物平台，厂家产品会员价';
      let share_url = 'upid='+upid+'&id='+this.goods.goods_id;

      if (this.haggle_status && this.goods.attribute == 3) {
        share_title = '谷牧之道-请帮我砍一刀';
        share_desc = '点击链接进入程序授权后绑定手机号即可帮我砍价';
        share_url = 'upid='+upid+'&haggle_status='+member_id+'&id='+this.goods.goods_id;
      }

			return {
			  title: share_title,
			  query: share_url,
			  imageUrl:imgurl
			}
		},
		//#endif
		methods: {
      open_change:function(e)
      {
        if(e.detail.value)
        {
          this.open = 1;
        }
        else
        {
          this.open = 0;
        }
      },
			change_swiper:function(e)
			{
				var tmp = parseInt(e.detail.current);
				if(tmp%this.t==0)
				{
					this.n = 1;
				}
				else
				{
					this.n = tmp%this.t+1;
				}
				
			},
			share_config:function()
			{
			  console.log('99999')
				var that  = this;
				var site  = window.location.href;
        var member_id = uni.getStorageSync("member_id");
				this.site = site;
				uni.request({
					url: this.url+"/wechat_share",
					data: {url:site},
					header: {'Content-Type': 'application/json'},
					success: function (res) 
					{
					  let share_title = '谷牧之道-'+that.goods.goods_name;
					  let share_desc = '一站式购物平台，厂家产品会员价';
					  let share_url = that.url+'/wap?#/pages/mall/goods_detail?id='+that.id+"&/";

					  if (that.haggle_status && this.goods.attribute == 3) {
              share_title = '谷牧之道-请帮我砍一刀';
              share_desc = '点击链接进入程序授权后绑定手机号即可帮我砍价';
              share_url = that.url+'/wap?#/pages/mall/goods_detail?haggle_status='+member_id+'&id='+that.id+"&/";
            }

						console.log(res.data);
						wxjs.config({
						  debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
						  appId: res.data.appId,         // 必填，公众号的唯一标识
						  timestamp: res.data.timestamp, // 必填，生成签名的时间戳
						  nonceStr: res.data.nonceStr,   // 必填，生成签名的随机串
						  signature: res.data.signature,        // 必填，签名
						  jsApiList: ['updateAppMessageShareData','updateTimelineShareData']            // 必填，需要使用的JS接口列表
						  // jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","showMenuItems","hideMenuItems"]
						});
						wxjs.ready(function () {
							var shareData1 = {
								title:share_title, // 分享标题
								desc: share_desc, // 分享描述  全国健康类产品，
								link: share_url,  // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
								imgUrl: that.url+that.goods.imgurl, // 分享图标
								// type: '', // 分享类型,music、video或link，不填默认为link
								// dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
								success: function () {
									console.log("设置成功");
								}
							};
							var shareData2 = {
								title:share_title, // 分享标题
								link: share_url,  // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
								imgUrl: that.url+that.goods.imgurl, // 分享图标
								success: function () {
									console.log("设置成功");
								}
							};
							wxjs.updateAppMessageShareData(shareData1);
							wxjs.updateTimelineShareData(shareData2);
						})
						
					}
				})
			},
			select_specs:function()
			{
				this.display = 1;
			},
			dialog_close:function()
			{
				this.display = 0;
			},
			contact:function()
			{
				uni.navigateTo({url:"/pages/member/service"})
			},
			jia:function()
			{
				this.number++;
			},
			jian:function()
			{
				if(this.number>1)
				{
					this.number--;
				}
			},
			buy:function(e)
			{
				var type = e.currentTarget.dataset.type;
				var phone = uni.getStorageSync("phone");
				var that = this;
				if(phone=="")
				{
					uni.navigateTo({
						url:"/pages/member/login"
					})
				}
				else
				{
					var status = 1;
					for(var i=0;i<that.price.length;i++)
					{
						if(this.price_id==that.price[i].price_id)
						{
							if(that.price[i].stock==0)
							{
								status = 0;
								uni.showToast({
									title:"已售罄",
									duration:1000,
									icon:"none"
								})
								break;
							}
						}
					}
					if(status==1)
					{
						var upid = uni.getStorageSync("upid");
						// if(this.goods.promotion==1)
						// {
							if(upid==0)
							{
								uni.showModal({
									title:"操作提示",
									content:"请先绑定推荐人",
									showCancel:false,
									success: (res) => {
										if(res.confirm)
										{
											uni.switchTab({
												url:"../member/index"
											})
										}
									}
								})
								return;
							}
						// }
						var member_id = uni.getStorageSync("member_id");
						uni.request({
							url: this.url+'/wechat_add_goods_cart', 
							data: {id:this.id,member_id:member_id,price_id:this.price_id,number:this.number,type:type,open:this.open},
							header: {'Content-Type': 'application/json'},
							success: (res) => {
								if(res.data.status==1)
								{
									that.order(type);
								}
								if(res.data.status==2)
								{
									uni.showModal({
										title:"领取提示",
										content:res.data.msg,
										showCancel:false
									})
								}
							}
						})
						
					}
				}
			},
			order:function(type)
			{
				var phone = uni.getStorageSync("phone");
				var that = this;
				if(phone=="")
				{
					uni.navigateTo({
						url:"/pages/member/login"
					})
				}
				else
				{
					var member_id = uni.getStorageSync("member_id");
					//#ifdef H5
					uni.request({
						url: this.url+'/wechat_get_address', 
						data: {member_id:member_id,type:2},
						header: {'Content-Type': 'application/json'},
						success: (res) => {
							if(res.data.status==1)
							{
								that.order_submit(type);
							}
							else
							{
								uni.showModal({
									title:"操作提示",
									content:"请先添加邮寄地址",
									showCancel:false,
									success: (address) => {
										uni.navigateTo({
											url:"/pages/member/address?type=goods&goods_id="+that.id
										})
									}
								})
							}
						}
					});
					//#endif
					//#ifdef APP-PLUS || MP-WEIXIN
					this.order_submit(type);
					//#endif
				}
			},
			order_submit:function(type)
			{
				var member_id = uni.getStorageSync("member_id");
				var replace_id = uni.getStorageSync("replace_id");
				if(replace_id=="")
				{
					replace_id = 0;
				}
				var that = this;
				uni.request({
					url: this.url+'/wechat_add_order', 
					data: {member_id:member_id,replace_id:replace_id,type:type},
					header: {'Content-Type': 'application/json'},
					success: (res) => {
						if(res.data.status==1)
						{
							//#ifdef APP-PLUS
							toMpWeixin({
								appId:'wxb7a354cd32681d5d',
								gid:'gh_87e8741e177a',
								path:'pages/mall/order?type='+type+'&order_id='+res.data.order_id
							})
							//#endif
							//#ifdef MP-WEIXIN
							uni.redirectTo({url:"/pages/mall/order?type="+type+"&order_id="+res.data.order_id})
							//#endif
							//#ifdef H5
							var ua = navigator.userAgent.toLocaleLowerCase();
							if(ua.match(/MicroMessenger/i) == 'micromessenger')
							{
							   var appid = 'wxb7a354cd32681d5d';
							   uni.setStorageSync("order_id",res.data.order_id);
							   var redirect_uri = encodeURIComponent(that.url+'/order?type='+type+'&member_id='+member_id+'&order_id='+res.data.order_id);
							   window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize"+"?appid="+appid+"&redirect_uri="+redirect_uri+"&response_type=code&scope=snsapi_base&state=1#wechat_redirect";
							}
							else
							{
								uni.redirectTo({url:"/pages/mall/order?type="+type+"&order_id="+res.data.order_id})
							}
							//#endif
						}
					}
				})
			},
			home:function()
			{
				uni.switchTab({url:"/pages/mall/index"});
			},
			cart:function(e)
			{
				var id = e.currentTarget.id;
				var phone = uni.getStorageSync("phone");
				var that = this;
				if(phone=="")
				{
					uni.navigateTo({
						url:"/pages/member/login"
					})
				}
				else
				{
					var upid = uni.getStorageSync("upid");
					if(this.goods.promotion==1)
					{
						if(upid==0)
						{
							uni.showModal({
								title:"操作提示",
								content:"请先绑定推荐人",
								showCancel:false,
								success: (res) => {
									if(res.confirm)
									{
										uni.switchTab({
											url:"../member/index"
										})
									}
								}
							})
							return;
						}
					}
					uni.navigateTo({url:"/pages/mall/ycart"});
				}
			},
			add_cart:function(e)
			{
				// uni.navigateTo({url:"/pages/mall/cart"});return;
				var phone = uni.getStorageSync("phone");
				// console.log(phone);return;
				var that = this;
				if(phone==""||phone=="0")
				{
					uni.navigateTo({
						url:"/pages/member/login"
					})
				}
				else
				{
					var upid = uni.getStorageSync("upid");
					if(this.goods.promotion==1)
					{
						if(upid==0)
						{
							uni.showModal({
								title:"操作提示",
								content:"请先绑定推荐人",
								showCancel:false,
								success: (res) => {
									if(res.confirm)
									{
										uni.switchTab({
											url:"../member/index"
										})
									}
								}
							})
							return;
						}
					}
					var status = 1;
					for(var i=0;i<that.price.length;i++)
					{
						if(this.price_id==that.price[i].price_id)
						{
							if(that.price[i].stock==0)
							{
								status = 0;
								uni.showToast({
									title:"已售罄",
									duration:1000,
									icon:"none"
								})
								break;
							}
						}
					}
					if(status==1)
					{
						var member_id = uni.getStorageSync("member_id");
						uni.request({
							url: this.url+'/wechat_add_goods_cart', 
							data: {id:this.id,price_id:this.price_id,member_id:member_id,number:this.number},
							header: {'Content-Type': 'application/json'},
							success: (res) => {
								if(res.data.status==1)
								{
									uni.showToast({
										title:"添加成功",
										duration:2000
									})
									uni.navigateTo({url:"/pages/mall/ycart"});
								}
								
							}
						});
					}
				}
			},
			initialize:function()
			{
				var that = this;
				var member_id = uni.getStorageSync("member_id");
				var replace_id = uni.getStorageSync("replace_id");
				if(replace_id=="")
				{
					replace_id = 0;
				}
				uni.request({
					url: this.url+'/wechat_goods', 
					data: {id:this.id,member_id:member_id,replace_id:replace_id},
					header: {'Content-Type': 'application/json'},
					success: (res) => {
						that.msg   = res.data.msg;
						that.goods = res.data.result[0];
						that.member_result = res.data.member_result[0];
						that.logo  = that.url+res.data.result[0].imgurl;
						that.member = res.data.member;
						// console.log(that.goods.goods_status);
						// that.banner = res.data.img;
						that.t = res.data.img.length;

						if (that.member_result != '' && that.member_result != [] && that.member_result != null) {
              if (that.member_result.is_haggle == 0
                  && that.member_result.haggle_price != null
                  && that.member_result.haggle_price != 0) {
                that.haggle_status = true;
              }

              if (that.member_result.haggle_price == 990) {
                uni.showModal({
                  title:"提示",
                  content: "每人只限砍价一次",
                  showCancel: false
                });
              }
            }

						if (that.haggle_status) {
              uni.showModal({
                title:"提示",
                content: '您已砍掉「'+(that.goods.price*100-that.member_result.haggle_price*100)/100+'」元，' +
                    '现在购买只需「'+that.member_result.haggle_price+'」元，最低到手价可「9.9」元',
                showCancel: false
              });
            }

						for(var j=0;j<res.data.img.length;j++)
						{
							that.banner.push(res.data.img[j]);
						}
						that.use_price = res.data.result[0].price;//+"<text class='start'>起</text>";
						that.original  = res.data.result[0].original/100;
						if(res.data.price!=undefined && res.data.price.length>0)
						{
							that.price  = res.data.price;
							for(var i=0;i<that.price.length;i++)
							{
								if(i==0)
								{
									that.price[i].checked = 1;
									that.price_id   = that.price[i].price_id;
									that.use_price  = that.price[i].grade_price;//+"<text class='start'>起</text>";
									that.original   = that.price[i].original/100;
									that.commission = that.price[i].commission;
									that.integral   = that.price[i].point_price;
								}
								else
								{
									that.price[i].checked = 0;
								}
							}
						}
						
						//#ifdef H5
						var ua = navigator.userAgent.toLocaleLowerCase();
						if(ua.match(/MicroMessenger/i) == 'micromessenger')
						{
							this.site = window.location.href;
							this.share_config();
						}
						//#endif
					}
				});
			},
      haggle:function () {
        var member_id = uni.getStorageSync("member_id");
        uni.request({
          url: this.url+'/wechat_add_haggle',
          data: {goods_id:this.goods.goods_id,member_id:member_id},
          header: {'Content-Type': 'application/json'},
          success: (res) => {
            if (res.data.status==1)
            {
              this.haggle_status = true;
              uni.showModal({
                title:"参加成功",
                content: res.data.msg,
                showCancel: false
              });
            }
            else
            {
              uni.showModal({
                title:"提示信息",
                content: res.data.msg,
                showCancel: false
              });
            }
          },
          fail:function(ress)
          {
            uni.showModal({
              title:"提示信息",
              content: "系统错误",
              showCancel: false
            });
            console.log('fail:' + JSON.stringify(ress));
          }
        });
      },
			add_cart_submit:function(e)
			{
				// console.log(this.goods_status);
				if(this.goods.goods_status==1)
				{
					this.display = 1;
				}
				else
				{
					uni.showModal({
						title:"操作提示",
						content:this.msg,
						showCancel:false
					})
				}
			},
      verify_area:function(e)
			{
        var member_id = uni.getStorageSync("member_id");
        uni.request({
          url: this.url+'/wechat_verify_area',
          data: {area:this.title1,goods_id:this.goods.goods_id,member_id:member_id},
          header: {'Content-Type': 'application/json'},
          success: (res) => {
            if (res.data.status==1)
            {
              uni.showModal({
                title:"提示信息",
                content: "通过！" +
                    "请点击立即购买继续操作",
                showCancel: false
              });
              this.area_status = 1;
            }
            else if(res.data.status==2)
            {
              uni.showModal({
                title:"提示信息",
                content: "代理区域格式错误",
                showCancel: false
              });
            }
            else
            {
              uni.showModal({
                title:"提示信息",
                content: "已存在该区域代理",
                showCancel: false
              });
            }
          },
          fail:function(ress)
          {
            uni.showModal({
              title:"提示信息",
              content: "系统错误",
              showCancel: false
            });
            console.log('fail:' + JSON.stringify(ress));
          }
        });
			},
			add_agent_area:function(e)
			{
				// console.log(this.goods_status);
				if(this.goods.goods_status==1)
				{
					this.display = 2;
				}
				else
				{
					uni.showModal({
						title:"操作提示",
						content:this.msg,
						showCancel:false
					})
				}
			},
      input_:function(e)
      {
        if(e.currentTarget.dataset.name=="title1")
        {
          this.title1 = e.target.value;
        }
      },
      area:function (e) {
        this.area = e.detail.value;
      },
			buy_submit:function(e)
			{
				// console.log(this.goods_status);
				if(this.goods.goods_status==1)
				{
					this.display = 1;
					// if (this.goods.goods_id == 439)
				  //   this.display = 3;
				  // else
					//   this.display = 2;
				}
				else
				{
					uni.showModal({
						title:"操作提示",
						content:this.msg,
						showCancel:false
					})
				}
			},
      buy_submit_2:function(e)
			{
				// console.log(this.goods_status);
				if(this.goods.goods_status==1)
				{
					this.display = 1;
				}
				else
				{
					uni.showModal({
						title:"操作提示",
						content:this.msg,
						showCancel:false
					})
				}
			},
			select_tag:function(e)
			{
				var id = e.currentTarget.id;
				var that = this;
				console.log(id);
				for(var i=0;i<that.price.length;i++)
				{
					that.price[i].checked = 0;
					// that.price_id = 0;
					if(parseInt(id)==that.price[i].price_id)
					{
						that.price[i].checked = 1;
						that.use_price        = that.price[i].grade_price;
						that.original         = that.price[i].original/100;
						that.price_id         = that.price[i].price_id;
						that.commission       = that.price[i].commission;
						that.specs            = that.price[i].specs_name;
						if(that.price[i].stock==0)
						{
							that.goods_status = 0;
						}
						that.start_status =0;
					}
				}
			}
		}
	}
</script>
<style>
	page{background: #F4F4F4;}
	.swiper{position: relative;}
	.y{position: absolute;z-index: 99999;right: 10upx;font-size:28upx;color: #F1F1F1;}
	/**********************************************/
	.mask{position: fixed;bottom: 0;left:0;opacity: 0.5;background: #000000;z-index: 99999;}
	.dialog{z-index:999999;background: #FFFFFF;position: fixed;bottom:0;left:0;max-height: 800upx;overflow-y: auto;
	       display:flex;flex-direction: column;justify-content: flex-end;align-items: flex-start;padding-top:20upx;}
	.dialog_goods{width:96%;margin:0 2%;padding:10upx 0;display: flex;justify-content: flex-start;align-items: flex-start;}
	.dialog_pic{width:20%;overflow: hidden;}
	.dialog_pic image{width: 100%;}
	.goods_con{width:67%;display: flex;flex-direction:column;justify-content: flex-start;align-items: flex-start;margin-left: 3%;}
	.dialog_price{font-size:36upx;color: #ef3d19;font-weight: bold;}
	.dialog_y{font-size: 28upx;color: #999999;margin-top: 10upx;}
	.specs{width:96%;margin:0 2%;max-height: 600upx;overflow-y: auto;}
	.specs_title{font-size: 28upx;color: #999999;font-weight: bold;}
	.self_lifting{width:96%;margin:0 2%;max-height: 600upx;overflow-y: auto;}
	.self_lifting_title{font-size: 28upx;color: #999999;font-weight: bold;}
	.self_lifting_text{font-size: 38upx;color: red;font-weight: bold;}
	.choice_specs{color: #282828;font-size: 28upx;width: 70%;display: flex;justify-content: flex-start;align-items: center;}
	.tag{border: 1px solid #f7f7f7;background: #f7f7f7;border-radius: 10upx;line-height: 70upx;padding:0 15upx;}
	.current_tag{background:#edfffb;border: 1px solid #9fe7d9;border-radius: 10upx;line-height: 70upx;padding:0 15upx;}
	
	.specs_unit{width:82%;margin:5upx 2%;display: flex;justify-content: flex-start;align-items: center;height: 70upx;}
	.specs_unit image{width:60upx;margin-right:20upx;}
	.specs_name{font-size: 26upx;}
	.dialog_number{width:96%;height: 80upx;display: flex;justify-content: space-between;align-items: center;margin:0 2%;}
	.label_name{color: #999999;font-size: 28upx;}
	.dialog_foot{width:96%;margin:10upx 2%;display: flex;justify-content: flex-end;align-items: center;height: 100upx;}
	.number_con{display: flex;justify-content: flex-end;align-items: center;height: 80upx;}
	/**********************************************/
	.title_name{font-size: 36upx;color: #ebebeb;font-weight: bold;margin-left:30upx;}
	.sub_title{border-left:1px solid #EBEBEB;color: #EBEBEB;font-size: 28upx;padding-left:50upx;margin-left:50upx;}
	.scroll{height: 560upx;width:94%;padding:0 3%;background-color:#e4e4e4;;display: flex;justify-content: center;align-items: center;}
	.scroll_goods{height: 560upx;background-color:#e4e4e4; display: flex;align-items: center;justify-content: flex-start;flex-wrap: nowrap;}
	.scroll_goods_unit{width:280upx;height: 500upx;background: #FFFFFF;margin:0 10upx;display: flex;padding-bottom: 30upx;
	                   flex-direction: column;justify-content: space-between;align-items: center;}
	.scroll_goods_unit_pic{width:280upx;height: 280upx;overflow:hidden;}
	.goods_name{width:96%;padding:0 2%;line-height: 40upx;font-size: 26upx;color: #717171;}
	.sub_goods_name{width:96%;padding:0 2%;line-height: 35upx;font-size: 24upx;color:#AAAAAA;}
	.goods_property{width:96%;padding:0 2%;display: flex;justify-content: space-between;align-items: center;height: 50upx;}
	.goods_price{font-size: 36upx;font-weight: bold;color: #b28f59;}
	.goods_property image{width:50upx;height: 50upx;}
	/**********************************************/
	.title{width:94%;padding:30upx 3% 10upx 3%;display: flex;justify-content: space-between;align-items: center;background: #FFFFFF;}
	.title_price{color: #DD524D;font-size: 56upx;font-weight: bold;}
	.title_price text{text-decoration: line-through;color: #CCCCCC;font-size:40upx;padding-left:20upx;}
	.start{font-size:32upx !important;color: #DD524D !important;text-decoration: none !important;}
	.integral{font-size:32upx !important;color: #DD524D !important;text-decoration: none !important;}
	.goods_commsion{margin-right:2%;width:35%;display: flex;justify-content: space-between;align-items: center;height: 40upx;border-radius:10upx;overflow: hidden;}
	.commission_name{width:50%;line-height: 40upx;height:40upx;font-size:28upx;background:#ef3d19;color: #ffffff;text-align: center;}
	.commission_price{width:50%;line-height: 40upx;height:40upx;font-size:26upx;background:#ffece8;color: #ef3d19;text-align: center;}
	
	.share{margin-left:0;margin-right: 0;flex-direction: column;display: flex;justify-content: flex-start;align-items: center;background: #ededed;}
	.share:after{border:0 !important;}
	.share image{width:45upx;height: 45upx;}
	.share_name{font-size: 24upx;color: #717171;}
	.title_goods_name{width:92%;padding:0 4%;font-size: 36upx;line-height: 50upx;font-weight: bold;color: #282828;background: #FFFFFF;}
	.title_remark{width:92%;padding:0 4%;font-size: 26upx;color: #999;line-height: 35upx;background: #FFFFFF;}
	
	.adv{width:94%;margin:25upx 3%;}
	.service{border:0px;background: #EBEBEB;padding:0;margin:0;display: flex;}
	.service image{width:100%;}
	
	.property_con{width:94%;margin:0 3%;display: flex;justify-content: space-between;align-items: center;line-height: 40upx;}
	.property_key{font-size: 28upx;width:30%;color: #717171;text-align: center;}
	.property_value{font-size: 28upx;width:68%;padding-left:2%}
	.aaa{background-color: #F1F1F1; height: 2upx; width: 100%;}
	.choice{display: flex;padding:20upx 3%;line-height:50upx;align-items: center;justify-content: flex-start;width:94%;border-bottom:1px solid #F1F1F1;background: #FFFFFF;}
	.choice_left{width:18%;padding:0 3%;font-size: 28upx;text-align: left;color: #282828;}
	.choice_value{width:19%;padding-left:1%;font-size: 28upx;text-align: left;color: #282828;}
	.choice_y{width:50%;font-size: 28upx;text-align: right;color: #282828;}
	.choice_right{color: #282828;font-size: 28upx;width: 70%;display: flex;justify-content: flex-start;align-items: center;}
	/* .choice_right view:first-child{margin-left:0;} */
	
	.shop_name{display: flex;justify-content: center;align-items: flex-start;}
	.shop_name image{width: 50%;}
	.title_title{font-size: 36upx;}
	.shop_info{margin-left: 5%;margin-right: 5%;line-height:50upx;}
	.shop_info_view{margin-bottom: 150upx;width:96%;color: #282828;font-size: 24upx;padding:0 2%;line-height: 50upx;}
	.shop_info_view image{width:100%;}
	.one-hao{height: 100upx; width: 500upx;display: flex;align-items: center;font-size: 34upx;color: #b4b4b4;}
	.menu_title{width:96%;padding:10upx 2%;height: 80upx;display: flex;justify-content:center;align-items: center;flex-direction: column;position:relative;}
	.content_name{font-size:80upx;padding:0 50upx;background: #F4F4F4;font-size:36upx;z-index:99;}
	.line{width:60%;height: 1px;background: #CCCCCC;position: absolute;top: 50upx;z-index: 9;}
	.foot_{display: flex;justify-content: center;align-items: center;height: 80upx;width: 100%;position: fixed;
	bottom: 0upx;background: #AAAAAA;text-align: center;font-size: 28upx;color: #FFFFFF;}
	
	.foot{display: flex;height: 100upx;width: 100%;position: fixed;bottom: 0upx;background: #FFFFFF;justify-content: flex-end;align-items: center;z-index: 9999;}
	.foot_left{height:95upx;width: 16%;text-align: center;display: flex;flex-direction: column;justify-content: center;align-items: center;}
	.foot_service{height: 95upx;width: 16%;padding:0;margin:0;border:0;
	             display: flex;flex-direction: column;justify-content: center;align-items: center;background: #FFFFFF;}
	.foot_service:after{border: none !important;}
	.foot_pic{width:50upx;height: 50upx;}
	.foot_name{text-align: center;font-size: 24upx;line-height: 30upx;}
	.foot_middle{background-image: linear-gradient(to right,#43eac9,#24c3a4);width: 47%;text-align: center;height: 80upx;
				 line-height: 80upx;font-size: 28upx;color: white;border-radius: 40upx 0 0 40upx;}
	/*.foot_right{background:#ff1844;width: 96%;margin-right: 2%;text-align: center;height: 80upx;line-height:80upx;font-size: 28upx;*/
	/*            color: white;border-radius: 40upx;}*/
	.foot_middle_{background-image: linear-gradient(to right,#43eac9,#24c3a4);width: 48%;text-align: center;height: 80upx;margin-left:2%;
				 line-height: 80upx;font-size: 28upx;color: white;border-radius: 40upx 0 0 40upx;}
	.foot_right_{background:#ff1844;width: 96%;margin-right: 2%;text-align: center;height: 80upx;line-height:80upx;font-size: 28upx;
	            color: white;border-radius: 0 40upx 40upx 0;}
  .foot_right_and_left{background:#ff1844;width: 98%;margin-right: 2%;text-align: center;height: 80upx;line-height:80upx;font-size: 38upx;
	            color: white;border-radius: 40upx 40upx 40upx 40upx;}
	.foot_button{background-image: linear-gradient(#eeeeee, #cccccc);width:66%;text-align: center;height: 80upx;
				 line-height: 80upx;font-size: 28upx;color: white;border-radius: 40upx;}
	.foot_free_button{background-image: linear-gradient(to right,#43eac9,#24c3a4);width:96%;margin:0 2%;text-align: center;height: 80upx;
				 line-height: 80upx;font-size: 28upx;color: white;border-radius: 40upx;}
	/* 选数量 */
	.number{height: 50upx;line-height: 50upx;display: flex;justify-content: flex-start;align-items: center;}
	.jian{width:50upx;height: 50upx;line-height: 50upx;display: flex;justify-content: center;align-items: center;
	     text-align: center;border: 1upx solid #ddd;border-radius:10upx;}
	.jian image{width:30upx;height: 30upx;}
	.number_number{ width: 70upx;height: 50upx;line-height: 50upx; margin:0 5upx; text-align: center; font-size: 30upx;	color: #282828;}
	
	.member_list{width:96%;margin:20upx 2%;height: 300upx;overflow-y: auto;border:1px solid #f4f4f4;border-radius: 10upx;}
	.list_unit{width:100%;display: flex;justify-content: space-around;align-items: center;height: 70upx;}
	.list_unit:nth-child(odd){background: #ffffff;}
	.list_unit image{width:50upx;height: 50upx;}
	.unit_member{font-size: 28upx;padding-left:10upx;width:50%;}
	.order_number{width:20%;font-size: 28upx;}
	.order_pin{background-image: linear-gradient(to right,#43eac9,#24c3a4);color: #ffffff;width:20%;border-radius: 10upx;font-size: 28upx;text-align: center;}
  .title{width:94%;padding:10rpx 3%;display: flex;justify-content:space-between;}
  .input_text{margin-left:25%;width:82%;height:80rpx;line-height: 80rpx;font-size:26rpx;border:1px solid #d1d1d1;border-radius: 10rpx;padding-left:2%;}
  .agent_area_tips_info{font-size:25rpx;margin-left: 25%;margin-top: 2%;}
  .agent_area_tips_info_detail{color: red;font-size:25rpx;}
  .input_label{font-size:28rpx;color:black;}
  .agent_{margin-left: 5%;}
	.foot_right {
		background: #ff1844;
		width: 48%;
		margin-right: 2%;
		text-align: center;
		height: 80rpx;
		line-height: 80rpx;
		font-size: 28rpx;
		color: white;
		border-radius: 0 40rpx 40rpx 0;
	}
</style>
